package com.zyk.scaffold.oauth.keypool.pojo.dto;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class KeyIdsContext {
    private List<Integer> ids = new ArrayList();
    private Integer size = 0;

    public static KeyIdsContext creatKeyIdsContext(List<Integer> ids){
        KeyIdsContext keyIdsContext = new KeyIdsContext();
        keyIdsContext.setIds(ids);
        keyIdsContext.setSize(ids.size());
        return keyIdsContext;
    }
}
